.row
  .table-responsive.col-sm-12.col-md-6.mt-4
    %h4 Provides
    %table.table.table-bordered.table-hover.table-sm
      %thead
        %tr
          %th.w-75 Symbol
          %th.w-25 Required by
      %tbody
        - fileinfo.elements('provides_ext') do |package_file|
          %tr
            %td.text-word-break-all= package_file['dep']
            %td
              %ul.list-unstyled
                - package_file.elements('requiredby') do |package_binary|
                  %li
                    = link_to package_binary['name'], project_package_repository_binary_dependency_path(project_name: project,
                                                      package_name: package,
                                                      repository: repository.try(:name) || repository,
                                                      arch: architecture.try(:name) || architecture,
                                                      dependant_project: package_binary['project'],
                                                      dependant_repository: package_binary['repository'],
                                                      dependant_name: package_binary['name'],
                                                      binary_filename: filename)
        - unless fileinfo['provides_ext']
          %tr
            %td{ colspan: '2' }
              %em No provides

  .table-responsive.col-sm-12.col-md-6.mt-4
    %h4 Requires
    %table.table.table-bordered.table-hover.table-sm
      %thead
        %tr
          %th.w-75 Symbol
          %th.w-25 Provided by
      %tbody
        - fileinfo.elements('requires_ext') do |package_file|
          %tr
            %td.text-word-break-all= package_file['dep']
            %td
              %ul.list-unstyled
                - package_file.elements('providedby') do |package_binary|
                  %li
                    = link_to package_binary['name'], project_package_repository_binary_dependency_path(project_name: project,
                                                      package_name: package,
                                                      repository: repository.try(:name) || repository,
                                                      arch: architecture.try(:name) || architecture,
                                                      dependant_project: package_binary['project'],
                                                      dependant_repository: package_binary['repository'],
                                                      dependant_name: package_binary['name'],
                                                      binary_filename: filename)
        - unless fileinfo['requires_ext']
          %tr
            %td{ colspan: '2' }
              %em No requires

  .table-responsive.col-sm-12.col-md-6.mt-4
    %h4 Recommends
    %table.table.table-bordered.table-hover.table-sm
      %thead
        %tr
          %th.w-75 Symbol
          %th.w-25 Provided by
      %tbody
        - fileinfo.elements('recommends_ext') do |package_file|
          %tr
            %td.text-word-break-all= package_file['dep']
            %td
              %ul.list-unstyled
                - package_file.elements('providedby') do |package_binary|
                  %li
                    = link_to package_binary['name'], project_package_repository_binary_dependency_path(project_name: project,
                                                      package_name: package,
                                                      repository: repository.try(:name) || repository,
                                                      arch: architecture.try(:name) || architecture,
                                                      dependant_project: package_binary['project'],
                                                      dependant_repository: package_binary['repository'],
                                                      dependant_name: package_binary['name'],
                                                      binary_filename: filename)
        - unless fileinfo['recommends_ext']
          %tr
            %td{ colspan: '2' }
              %em No recommends

  .table-responsive.col-sm-12.col-md-6.mt-4
    %h4 File List
    %table.table.table-sm.table-bordered#filelist-table{ 'data-source': project_package_repository_binary_filelist_path(project,
                                                                                                                        package,
                                                                                                                        repository,
                                                                                                                        architecture,
                                                                                                                        filename) }
      %thead
        %tr
          %th Name
      %tbody
